Optimal. Leaf size=198 \[ -\frac {\sqrt {2} \sqrt {2 c d-\left (b-\sqrt {b^2-4 a c}\right ) e} \tanh ^{-1}\left (\frac {\sqrt {2} \sqrt {c} \sqrt {d+e x}}{\sqrt {2 c d-\left (b-\sqrt {b^2-4 a c}\right ) e}}\right )}{\sqrt {c} \sqrt {b^2-4 a c}}+\frac {\sqrt {2} \sqrt {2 c d-\left (b+\sqrt {b^2-4 a c}\right ) e} \tanh ^{-1}\left (\frac {\sqrt {2} \sqrt {c} \sqrt {d+e x}}{\sqrt {2 c d-\left (b+\sqrt {b^2-4 a c}\right ) e}}\right )}{\sqrt {c} \sqrt {b^2-4 a c}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.18, antiderivative size = 198, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 3, integrand size = 22, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.136, Rules used = {713, 1144, 214}
\begin {gather*} \frac {\sqrt {2} \sqrt {2 c d-e \left (\sqrt {b^2-4 a c}+b\right )} \tanh ^{-1}\left (\frac {\sqrt {2} \sqrt {c} \sqrt {d+e x}}{\sqrt {2 c d-e \left (\sqrt {b^2-4 a c}+b\right )}}\right )}{\sqrt {c} \sqrt {b^2-4 a c}}-\frac {\sqrt {2} \sqrt {2 c d-e \left (b-\sqrt {b^2-4 a c}\right )} \tanh ^{-1}\left (\frac {\sqrt {2} \sqrt {c} \sqrt {d+e x}}{\sqrt {2 c d-e \left (b-\sqrt {b^2-4 a c}\right )}}\right )}{\sqrt {c} \sqrt {b^2-4 a c}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 214
Rule 713
Rule 1144
Rubi steps
\begin {align*} \int \frac {\sqrt {d+e x}}{a+b x+c x^2} \, dx &=(2 e) \text {Subst}\left (\int \frac {x^2}{c d^2-b d e+a e^2+(-2 c d+b e) x^2+c x^4} \, dx,x,\sqrt {d+e x}\right )\\ &=-\left (\left (-e-\frac {2 c d-b e}{\sqrt {b^2-4 a c}}\right ) \text {Subst}\left (\int \frac {1}{-\frac {1}{2} \sqrt {b^2-4 a c} e+\frac {1}{2} (-2 c d+b e)+c x^2} \, dx,x,\sqrt {d+e x}\right )\right )+\left (e-\frac {2 c d-b e}{\sqrt {b^2-4 a c}}\right ) \text {Subst}\left (\int \frac {1}{\frac {1}{2} \sqrt {b^2-4 a c} e+\frac {1}{2} (-2 c d+b e)+c x^2} \, dx,x,\sqrt {d+e x}\right )\\ &=-\frac {\sqrt {2} \sqrt {2 c d-\left (b-\sqrt {b^2-4 a c}\right ) e} \tanh ^{-1}\left (\frac {\sqrt {2} \sqrt {c} \sqrt {d+e x}}{\sqrt {2 c d-\left (b-\sqrt {b^2-4 a c}\right ) e}}\right )}{\sqrt {c} \sqrt {b^2-4 a c}}+\frac {\sqrt {2} \sqrt {2 c d-\left (b+\sqrt {b^2-4 a c}\right ) e} \tanh ^{-1}\left (\frac {\sqrt {2} \sqrt {c} \sqrt {d+e x}}{\sqrt {2 c d-\left (b+\sqrt {b^2-4 a c}\right ) e}}\right )}{\sqrt {c} \sqrt {b^2-4 a c}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] Result contains complex when optimal does not.
time = 0.61, size = 252, normalized size = 1.27 \begin {gather*} \frac {\sqrt {2} \left (\frac {\left (-2 i c d+\left (i b+\sqrt {-b^2+4 a c}\right ) e\right ) \tan ^{-1}\left (\frac {\sqrt {2} \sqrt {c} \sqrt {d+e x}}{\sqrt {-2 c d+b e-i \sqrt {-b^2+4 a c} e}}\right )}{\sqrt {-2 c d+\left (b-i \sqrt {-b^2+4 a c}\right ) e}}+\frac {\left (2 i c d+\left (-i b+\sqrt {-b^2+4 a c}\right ) e\right ) \tan ^{-1}\left (\frac {\sqrt {2} \sqrt {c} \sqrt {d+e x}}{\sqrt {-2 c d+b e+i \sqrt {-b^2+4 a c} e}}\right )}{\sqrt {-2 c d+\left (b+i \sqrt {-b^2+4 a c}\right ) e}}\right )}{\sqrt {c} \sqrt {-b^2+4 a c}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.79, size = 251, normalized size = 1.27
method | result | size |
derivativedivides | \(8 e c \left (-\frac {\left (-b e +2 c d +\sqrt {-e^{2} \left (4 a c -b^{2}\right )}\right ) \sqrt {2}\, \arctanh \left (\frac {c \sqrt {e x +d}\, \sqrt {2}}{\sqrt {\left (-b e +2 c d +\sqrt {-e^{2} \left (4 a c -b^{2}\right )}\right ) c}}\right )}{8 c \sqrt {-e^{2} \left (4 a c -b^{2}\right )}\, \sqrt {\left (-b e +2 c d +\sqrt {-e^{2} \left (4 a c -b^{2}\right )}\right ) c}}+\frac {\left (b e -2 c d +\sqrt {-e^{2} \left (4 a c -b^{2}\right )}\right ) \sqrt {2}\, \arctan \left (\frac {c \sqrt {e x +d}\, \sqrt {2}}{\sqrt {\left (b e -2 c d +\sqrt {-e^{2} \left (4 a c -b^{2}\right )}\right ) c}}\right )}{8 c \sqrt {-e^{2} \left (4 a c -b^{2}\right )}\, \sqrt {\left (b e -2 c d +\sqrt {-e^{2} \left (4 a c -b^{2}\right )}\right ) c}}\right )\) | \(251\) |
default | \(8 e c \left (-\frac {\left (-b e +2 c d +\sqrt {-e^{2} \left (4 a c -b^{2}\right )}\right ) \sqrt {2}\, \arctanh \left (\frac {c \sqrt {e x +d}\, \sqrt {2}}{\sqrt {\left (-b e +2 c d +\sqrt {-e^{2} \left (4 a c -b^{2}\right )}\right ) c}}\right )}{8 c \sqrt {-e^{2} \left (4 a c -b^{2}\right )}\, \sqrt {\left (-b e +2 c d +\sqrt {-e^{2} \left (4 a c -b^{2}\right )}\right ) c}}+\frac {\left (b e -2 c d +\sqrt {-e^{2} \left (4 a c -b^{2}\right )}\right ) \sqrt {2}\, \arctan \left (\frac {c \sqrt {e x +d}\, \sqrt {2}}{\sqrt {\left (b e -2 c d +\sqrt {-e^{2} \left (4 a c -b^{2}\right )}\right ) c}}\right )}{8 c \sqrt {-e^{2} \left (4 a c -b^{2}\right )}\, \sqrt {\left (b e -2 c d +\sqrt {-e^{2} \left (4 a c -b^{2}\right )}\right ) c}}\right )\) | \(251\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 683 vs.
\(2 (164) = 328\).
time = 2.73, size = 683, normalized size = 3.45 \begin {gather*} -\frac {1}{2} \, \sqrt {2} \sqrt {\frac {2 \, c d - b e + \frac {{\left (b^{2} c - 4 \, a c^{2}\right )} e}{\sqrt {b^{2} c^{2} - 4 \, a c^{3}}}}{b^{2} c - 4 \, a c^{2}}} \log \left (\frac {\sqrt {2} {\left (b^{2} c - 4 \, a c^{2}\right )} \sqrt {\frac {2 \, c d - b e + \frac {{\left (b^{2} c - 4 \, a c^{2}\right )} e}{\sqrt {b^{2} c^{2} - 4 \, a c^{3}}}}{b^{2} c - 4 \, a c^{2}}} e}{\sqrt {b^{2} c^{2} - 4 \, a c^{3}}} + 2 \, \sqrt {x e + d} e\right ) + \frac {1}{2} \, \sqrt {2} \sqrt {\frac {2 \, c d - b e + \frac {{\left (b^{2} c - 4 \, a c^{2}\right )} e}{\sqrt {b^{2} c^{2} - 4 \, a c^{3}}}}{b^{2} c - 4 \, a c^{2}}} \log \left (-\frac {\sqrt {2} {\left (b^{2} c - 4 \, a c^{2}\right )} \sqrt {\frac {2 \, c d - b e + \frac {{\left (b^{2} c - 4 \, a c^{2}\right )} e}{\sqrt {b^{2} c^{2} - 4 \, a c^{3}}}}{b^{2} c - 4 \, a c^{2}}} e}{\sqrt {b^{2} c^{2} - 4 \, a c^{3}}} + 2 \, \sqrt {x e + d} e\right ) + \frac {1}{2} \, \sqrt {2} \sqrt {\frac {2 \, c d - b e - \frac {{\left (b^{2} c - 4 \, a c^{2}\right )} e}{\sqrt {b^{2} c^{2} - 4 \, a c^{3}}}}{b^{2} c - 4 \, a c^{2}}} \log \left (\frac {\sqrt {2} {\left (b^{2} c - 4 \, a c^{2}\right )} \sqrt {\frac {2 \, c d - b e - \frac {{\left (b^{2} c - 4 \, a c^{2}\right )} e}{\sqrt {b^{2} c^{2} - 4 \, a c^{3}}}}{b^{2} c - 4 \, a c^{2}}} e}{\sqrt {b^{2} c^{2} - 4 \, a c^{3}}} + 2 \, \sqrt {x e + d} e\right ) - \frac {1}{2} \, \sqrt {2} \sqrt {\frac {2 \, c d - b e - \frac {{\left (b^{2} c - 4 \, a c^{2}\right )} e}{\sqrt {b^{2} c^{2} - 4 \, a c^{3}}}}{b^{2} c - 4 \, a c^{2}}} \log \left (-\frac {\sqrt {2} {\left (b^{2} c - 4 \, a c^{2}\right )} \sqrt {\frac {2 \, c d - b e - \frac {{\left (b^{2} c - 4 \, a c^{2}\right )} e}{\sqrt {b^{2} c^{2} - 4 \, a c^{3}}}}{b^{2} c - 4 \, a c^{2}}} e}{\sqrt {b^{2} c^{2} - 4 \, a c^{3}}} + 2 \, \sqrt {x e + d} e\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 1.14, size = 223, normalized size = 1.13 \begin {gather*} -\frac {\sqrt {-4 \, c^{2} d + 2 \, {\left (b c - \sqrt {b^{2} - 4 \, a c} c\right )} e} \arctan \left (\frac {2 \, \sqrt {\frac {1}{2}} \sqrt {x e + d}}{\sqrt {-\frac {2 \, c d - b e + \sqrt {{\left (2 \, c d - b e\right )}^{2} - 4 \, {\left (c d^{2} - b d e + a e^{2}\right )} c}}{c}}}\right )}{\sqrt {b^{2} - 4 \, a c} {\left | c \right |}} + \frac {\sqrt {-4 \, c^{2} d + 2 \, {\left (b c + \sqrt {b^{2} - 4 \, a c} c\right )} e} \arctan \left (\frac {2 \, \sqrt {\frac {1}{2}} \sqrt {x e + d}}{\sqrt {-\frac {2 \, c d - b e - \sqrt {{\left (2 \, c d - b e\right )}^{2} - 4 \, {\left (c d^{2} - b d e + a e^{2}\right )} c}}{c}}}\right )}{\sqrt {b^{2} - 4 \, a c} {\left | c \right |}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 1.18, size = 709, normalized size = 3.58 \begin {gather*} -2\,\mathrm {atanh}\left (\frac {2\,\left (\sqrt {d+e\,x}\,\left (-8\,b^2\,c\,e^4+16\,b\,c^2\,d\,e^3-16\,c^3\,d^2\,e^2+16\,a\,c^2\,e^4\right )+\frac {\sqrt {d+e\,x}\,\left (8\,b^3\,c^2\,e^3-16\,d\,b^2\,c^3\,e^2-32\,a\,b\,c^3\,e^3+64\,a\,d\,c^4\,e^2\right )\,\left (b^3\,e+e\,\sqrt {-{\left (4\,a\,c-b^2\right )}^3}+8\,a\,c^2\,d-2\,b^2\,c\,d-4\,a\,b\,c\,e\right )}{2\,\left (16\,a^2\,c^3-8\,a\,b^2\,c^2+b^4\,c\right )}\right )\,\sqrt {-\frac {b^3\,e+e\,\sqrt {-{\left (4\,a\,c-b^2\right )}^3}+8\,a\,c^2\,d-2\,b^2\,c\,d-4\,a\,b\,c\,e}{2\,\left (16\,a^2\,c^3-8\,a\,b^2\,c^2+b^4\,c\right )}}}{16\,c^2\,d^2\,e^3-16\,b\,c\,d\,e^4+16\,a\,c\,e^5}\right )\,\sqrt {-\frac {b^3\,e+e\,\sqrt {-{\left (4\,a\,c-b^2\right )}^3}+8\,a\,c^2\,d-2\,b^2\,c\,d-4\,a\,b\,c\,e}{2\,\left (16\,a^2\,c^3-8\,a\,b^2\,c^2+b^4\,c\right )}}-2\,\mathrm {atanh}\left (\frac {2\,\left (\sqrt {d+e\,x}\,\left (-8\,b^2\,c\,e^4+16\,b\,c^2\,d\,e^3-16\,c^3\,d^2\,e^2+16\,a\,c^2\,e^4\right )-\frac {\sqrt {d+e\,x}\,\left (8\,b^3\,c^2\,e^3-16\,d\,b^2\,c^3\,e^2-32\,a\,b\,c^3\,e^3+64\,a\,d\,c^4\,e^2\right )\,\left (e\,\sqrt {-{\left (4\,a\,c-b^2\right )}^3}-b^3\,e-8\,a\,c^2\,d+2\,b^2\,c\,d+4\,a\,b\,c\,e\right )}{2\,\left (16\,a^2\,c^3-8\,a\,b^2\,c^2+b^4\,c\right )}\right )\,\sqrt {\frac {e\,\sqrt {-{\left (4\,a\,c-b^2\right )}^3}-b^3\,e-8\,a\,c^2\,d+2\,b^2\,c\,d+4\,a\,b\,c\,e}{2\,\left (16\,a^2\,c^3-8\,a\,b^2\,c^2+b^4\,c\right )}}}{16\,c^2\,d^2\,e^3-16\,b\,c\,d\,e^4+16\,a\,c\,e^5}\right )\,\sqrt {\frac {e\,\sqrt {-{\left (4\,a\,c-b^2\right )}^3}-b^3\,e-8\,a\,c^2\,d+2\,b^2\,c\,d+4\,a\,b\,c\,e}{2\,\left (16\,a^2\,c^3-8\,a\,b^2\,c^2+b^4\,c\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________